<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<link href="../css/docs.css" type="text/css" rel="stylesheet" />
<link href="../css/prettify.css" type="text/css" rel="stylesheet" />
<script src="../js/prettify.js" type="text/javascript"></script>
</head>
<body onLoad="prettyPrint()">
<div class="g-unit" id="doc-content">
<div id="api-info-block">
<div class="api-level">H3C CAS云管理平台</div>
</div>
<div id="jd-header">
<h1>修改主机IOMMU状态</h1>
</div>
<div id="jd-content">
<div class="jd-descr">
<p>修改主机IOMMU状态。</p>
<h2><a name="uri"></a>接口 URI</h2>
<p>/cas/casrs/host/modifyHostIommuConf?hostId={hostId}&amp;iommuState={iommuState}</p>
<h2><a name="access"></a>访问方法</h2>
<dl>
  <dt><b>HTTP 方法</b></dt>
  <dd>PUT</dd>
  <dt><b>参数</b></dt><br>
  <table id="pubmethods" class="jd-sumtable"><tbody><tr>
          <th colspan="2">查询参数（Query Parameter）</th>
        </tr>
	        <tr >
	          <td class="jd-typecol">hostId</td>
	          <td class="jd-linkcol"> <span class="sympad">主机id。</span>
                <div class="jd-descrdiv">长整数（Long）类型。必须。</div></td>
            </tr>
	        <tr class="alt-color">
	          <td class="jd-typecol">iommuState</td>
	          <td class="jd-linkcol" width="100%"><span class="sympad"> IOMMU状态标识。</span>
                <div class="jd-descrdiv">字符串（String）类型。必须。1为启用，0为禁用。</div>	          </td>
	        </tr>
        </table>
</dl>

<h2><a name="result"></a>返回结果</h2>
<dl>
  <dt><b>状态码</b></dt>
  <dd>
  <ul>
    <li>200：成功</li>
  </ul>
  </dd>
  <dt>&nbsp;</dt>
  <dt><b>消息头</b></dt>
   <br>
  <pre class="prettyprint lang-xml">Content-Type: application/xml<br>Content-Length: 176<br>Date: Wed, 07 Mar 2018 07:59:11 GMT<br>Server: H3C-CVM  </pre>
  <dt><b>消息体</b></dt>
  <div class="source">
    <pre>&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;&lt;rsResult&gt;<br>  &lt;state&gt;0&lt;/state&gt;<br>  &lt;errorCode&gt;0&lt;/errorCode&gt;<br>  &lt;message&gt;启用主机“cvk35上的IOMMU成功。&lt;/message&gt;<br>&lt;/rsResult&gt;</pre>
    </div>
</dl>

<h2><a name="example"></a>应用举例</h2>
    <p>1.启用id为9的主机的IOMMU。</p>
    <dl>
      <dt><b>请求</b></dt>
      <div class="source">
        <pre class="prettyprint lang-xml">PUT http://localhost:8080/cas/casrs/host/modifyHostIommuConf?hostId=9&amp;iommuState=1
accept: application/xml
... </pre>
      </div>
      <dt><b>回应</b></dt>
      <div class="source"><pre class="prettyprint lang-xml">HTTP/1.1 200 OK<br>Content-Type: application/xml<br>Content-Length: 176<br>Date: Wed, 07 Mar 2018 07:59:11 GMT<br>Server: H3C-CVM  
...<br>&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;&lt;rsResult&gt;<br>  &lt;state&gt;0&lt;/state&gt;<br>  &lt;errorCode&gt;0&lt;/errorCode&gt;<br>  &lt;message&gt;启用主机“cvk35上的IOMMU成功。&lt;/message&gt;<br>&lt;/rsResult&gt;<br></pre>
      </div>
    </dl>
	<p>2.禁用id为9的主机的IOMMU。</p>
    <dl>
      <dt><b>请求</b></dt>
      <div class="source">
        <pre class="prettyprint lang-xml">PUT http://localhost:8080/cas/casrs/host/modifyHostIommuConf?hostId=9&amp;iommuState=0
accept: application/xml
... </pre>
      </div>
      <dt><b>回应</b></dt>
      <div class="source"><pre class="prettyprint lang-xml">HTTP/1.1 200 OK<br>Content-Type: application/xml<br>Content-Length: 176<br>Date: Wed, 07 Mar 2018 07:59:11 GMT<br>Server: H3C-CVM  
...<br>&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;&lt;rsResult&gt;<br>  &lt;state&gt;0&lt;/state&gt;<br>  &lt;errorCode&gt;0&lt;/errorCode&gt;<br>  &lt;message&gt;禁用主机“cvk35”上的IOMMU成功。&lt;/message&gt;<br>&lt;/rsResult&gt;<br></pre>
      </div>
    </dl>
</div>
</div>
</div>
</body>
</html>